package com.linked.basemanage.base.bean.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author :dbq
 * @date : 2022/11/23 11:17
 */
@Data
@TableName("basemanage_switch_info")
public class SwitchInfoPO {

    /**
     * 开关主表id
     */
    @TableId(value = "switch_id", type = IdType.ASSIGN_UUID)
    private String switchId;
    /**
     * 开关编码
     */
    @TableField("switch_code")
    private String switchCode;
    /**
     * 开关名称
     */
    @TableField("switch_name")
    private String switchName;
    /**
     * 是否开启
     */
    @TableField("if_switch")
    private Integer ifSwitch;
    /**
     *
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 开关备注
     */
    @TableField("switch_notes")
    private String switchNotes;


    /**
     *开关是否有时间处理。0、无；1、定时开关；2、延时开关
     */
    @TableField("if_time")
    private Integer ifTime;

    /**
     *开启时间
     */
    @TableField("on_time")
    private String onTime;

    /**
     *关闭时间
     */
    @TableField("off_time")
    private String offTime;

    /**
     *延时时间
     */
    @TableField("delayed_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime delayedTime;

}
